.class public Lcom/waiqin365/lightapp/kehu/b/bo;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/ArrayList;

.field private c:Ljava/util/List;

.field private d:Ljava/util/List;

.field private e:I

.field private f:I

.field private g:Z

.field private h:Lcom/waiqin365/lightapp/kehu/b/bq;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 2

    const/4 v1, -0x1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->c:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->e:I

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->f:I

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->b:Ljava/util/ArrayList;

    invoke-direct {p0, p2}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Ljava/util/List;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/b/bo;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    return-object v0
.end method

.method private a(Ljava/util/List;)V
    .locals 3

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->c:Ljava/util/List;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->g()Ljava/util/List;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Ljava/util/List;)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    return-void
.end method

.method private b()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->j()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->f()Z

    move-result v2

    if-eqz v2, :cond_1

    :cond_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_2
    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    const/4 v2, 0x0

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    iput-boolean v2, v0, Lcom/waiqin365/base/db/cmfilteritem/a;->a:Z

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    return-void
.end method

.method public a(I)V
    .locals 4

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->h()I

    move-result v3

    if-gt v3, p1, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->h()I

    move-result v3

    if-ge v3, p1, :cond_1

    const/4 v3, 0x1

    invoke-virtual {v0, v3}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Z)V

    :goto_1
    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    invoke-virtual {v0, v2}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Z)V

    goto :goto_1

    :cond_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/b/bo;->notifyDataSetChanged()V

    return-void
.end method

.method public a(II)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->e:I

    iput p2, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->f:I

    return-void
.end method

.method public a(Lcom/waiqin365/base/db/cmfilteritem/a;)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "cmFilterItem"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->h:Lcom/waiqin365/lightapp/kehu/b/bq;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->h:Lcom/waiqin365/lightapp/kehu/b/bq;

    invoke-interface {v1, v0}, Lcom/waiqin365/lightapp/kehu/b/bq;->a(Landroid/content/Intent;)V

    :cond_0
    return-void
.end method

.method public a(Lcom/waiqin365/lightapp/kehu/b/bq;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->h:Lcom/waiqin365/lightapp/kehu/b/bq;

    return-void
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->b:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Ljava/util/List;)V

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->g:Z

    return-void
.end method

.method public b(I)V
    .locals 3

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->i()Z

    move-result v1

    if-nez v1, :cond_2

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->b()Z

    move-result v1

    if-nez v1, :cond_1

    move v1, v2

    :goto_0
    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Z)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/b/bo;->b()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/b/bo;->notifyDataSetChanged()V

    :cond_0
    :goto_1
    return-void

    :cond_1
    const/4 v1, 0x0

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/b/bo;->a()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/base/db/cmfilteritem/a;

    iput-boolean v2, v1, Lcom/waiqin365/base/db/cmfilteritem/a;->a:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/b/bo;->notifyDataSetChanged()V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Lcom/waiqin365/base/db/cmfilteritem/a;)V

    goto :goto_1
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9

    const/16 v8, 0xc

    const/high16 v4, 0x3f000000    # 0.5f

    const/4 v7, 0x3

    const/4 v6, -0x1

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->d:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    if-nez p2, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f0300c4

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/br;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/kehu/b/br;-><init>(Lcom/waiqin365/lightapp/kehu/b/bo;)V

    invoke-virtual {p2, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v1, 0x7f0c04e9

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/br;->a:Landroid/widget/RelativeLayout;

    const v1, 0x7f0c04ea

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/br;->b:Landroid/widget/ImageView;

    const v1, 0x7f0c04eb

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/br;->c:Landroid/widget/TextView;

    const v1, 0x7f0c04ec

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/br;->d:Landroid/widget/ImageView;

    const v1, 0x7f0c02f4

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, v2, Lcom/waiqin365/lightapp/kehu/b/br;->e:Landroid/view/View;

    move-object v1, v2

    :goto_0
    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->i()Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->b:Landroid/widget/ImageView;

    const/4 v3, 0x4

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->a:Landroid/content/Context;

    invoke-static {v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-direct {v2, v6, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->a:Landroid/content/Context;

    const/high16 v4, 0x41f00000    # 30.0f

    invoke-static {v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-virtual {v2, v3, v5, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v2, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/br;->e:Landroid/view/View;

    invoke-virtual {v3, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    :goto_1
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->a:Landroid/widget/RelativeLayout;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->a:Landroid/content/Context;

    const/high16 v4, 0x41800000    # 16.0f

    invoke-static {v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->h()I

    move-result v4

    mul-int/2addr v3, v4

    invoke-virtual {v2, v3, v7, v7, v7}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->c:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-boolean v2, v0, Lcom/waiqin365/base/db/cmfilteritem/a;->a:Z

    if-eqz v2, :cond_4

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->d:Landroid/widget/ImageView;

    const v3, 0x7f020129

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_2
    iget-boolean v2, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->g:Z

    if-eqz v2, :cond_6

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->i()Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->d:Landroid/widget/ImageView;

    invoke-virtual {v2, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_3
    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/br;->d:Landroid/widget/ImageView;

    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/bp;

    invoke-direct {v2, p0, p1, v0}, Lcom/waiqin365/lightapp/kehu/b/bp;-><init>(Lcom/waiqin365/lightapp/kehu/b/bo;ILcom/waiqin365/base/db/cmfilteritem/a;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/b/br;

    goto :goto_0

    :cond_2
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->a:Landroid/content/Context;

    invoke-static {v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-direct {v2, v6, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->a:Landroid/content/Context;

    const/high16 v4, 0x41600000    # 14.0f

    invoke-static {v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-virtual {v2, v3, v5, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v2, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v3, v1, Lcom/waiqin365/lightapp/kehu/b/br;->e:Landroid/view/View;

    invoke-virtual {v3, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->b()Z

    move-result v2

    if-eqz v2, :cond_3

    iget v2, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->e:I

    if-eq v2, v6, :cond_0

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->b:Landroid/widget/ImageView;

    iget v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->e:I

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_1

    :cond_3
    iget v2, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->f:I

    if-eq v2, v6, :cond_0

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->b:Landroid/widget/ImageView;

    iget v3, p0, Lcom/waiqin365/lightapp/kehu/b/bo;->f:I

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_1

    :cond_4
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->d:Landroid/widget/ImageView;

    const v3, 0x7f02012d

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    :cond_5
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->d:Landroid/widget/ImageView;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_3

    :cond_6
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/br;->d:Landroid/widget/ImageView;

    invoke-virtual {v2, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_3
.end method
